/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upc.clase.demo.service.impl;

import edu.upc.clase.demo.dao.ForoDao;
import edu.upc.clase.demo.entity.Foro;
import edu.upc.clase.demo.service.ForoServicio;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author JMD
 */

@Service
public class ForoServiceImpl implements ForoServicio{
    
    private static Logger log = LoggerFactory.getLogger(ForoServiceImpl.class);    
    
    @Autowired
    private ForoDao foroDao;

    @Override
    public int insertarPregunta(Foro f) {
        return foroDao.insertarPregunta(f);
    }

    @Override
    public int insertarRespuesta(Foro f) {
        return foroDao.insertarRespuesta(f);
    }

    @Override
    public int eliminar(Foro f) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Foro> buscarTodos() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Foro buscar(int id_foro) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Foro> buscarPorPlan(int plan_negocio_id_plan) {
        return foroDao.buscarPorPlan(plan_negocio_id_plan);
    }

    @Override
    public Foro buscarPorPlanForo(int plan_negocio_id_plan, int id_foro) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Foro> buscarPorUsuario(int usuario_id_usuario) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Foro> buscarPorPlanyUsuario(Foro f) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
